home *** CD-ROM | disk | FTP | other *** search
/ Whiteline: delta / whiteline CD Series - delta.iso / games / noah / forth.txt < prev    next >
Text File  |  1995-11-25  |  1KB  |  22 lines

  1. Noah's Arc is written in FORTH and for those of you who are asking
  2. "What is Forth" here is my one page introduction.
  3.    Unlike other computer languages with a limited set of instructions
  4. forth is more like a real language English, French or German.
  5. All forth instructions are called words and are keep in a dictonary.
  6. Forth is just like a child it knows very few words, but you can teach it
  7. new words. My ATART ST like a child does not know what an Arc is, so I say 
  8. it has a planked hull with 9 nameplates, brick cabin and a shingle roof.
  9. But I then have to explain what planks, brick and shingle look like.
  10.    I think you are ready for your first forth lesson; 2 9 brown pattern brick 
  11. is what I write in forth, the word "pattern" takes a colour and two numbers
  12. and adds a new word in the forth dictonary called "brick". Whenever the forth
  13. program says "brick" it takes those numbers and places them in the correct
  14. locations in the ST's memory ready for drawing a shape. I've also written a
  15. forth word called "shape" which takes a number of screen x y positions then
  16. draws the shape; 88 360  88 466  120 466  120 360  90 360  5 shape cabin
  17. Finialy here is my definition in forth to draw the arc, each of the patterns
  18. and shapes having been described similar to above. It contains some forth words
  19. which will be new to you, but you may well be able to guess their meaning;
  20.  
  21. planked hull  brick cabin  shingle roof  outlined  9 0 do i .nameplate loop
  22.